package ClassHomeworkTest;

public class CustomerAndAccountTest {
    public static void main(String[] args){
        Account a1 = new Account(1000,2000,0.0123);
        Customer c1 = new Customer("Jane Smith",a1);
        a1.deposit(100);
        System.out.println("余额剩余"+c1.getAccount().getBalance());
        a1.withdraw(960);
        System.out.println("余额剩余"+c1.getAccount().getBalance());
        a1.withdraw(2000);
        System.out.println(c1);

    }
}

